home *** CD-ROM | disk | FTP | other *** search
/ Joystick Magazine 2000 November / cd joystick no120 novembre 2000 cd 1.iso / data / demos / gunlok / data1.cab / Program_Executable_Files / scripts / gunlok.gsh < prev    next >
Text File  |  2000-08-22  |  2KB  |  104 lines

  1. // defines GunLok Robot
  2. ////////////////////////////////////////////////////////////////////////////////////
  3.  
  4. // start wrapper - prevent multiple inclusions or recursive inclusions
  5.  
  6. #ifndef INCLUDED_GUNLOK_GSH
  7. #define INCLUDED_GUNLOK_GSH
  8.  
  9. ////////////////////////////////////////////////////////////////////////////////////
  10.  
  11. #include "defaults.gsh"
  12.  
  13. hierarchy Hcy_GunLok
  14. {
  15.     file "units\gunlok mkii.RIF"
  16.     name "gunlok mkii"
  17.     hotspot "dum flash"
  18. }
  19.  
  20. hierarchy Hcy_GunLokShadow
  21. {
  22.     file "units\gunlok_shadow.RIF"
  23.     name "gunlok_shadow"
  24. }
  25.  
  26. hierarchy Hcy_GunLokCustomize
  27. {
  28.     file "units\wepgunlok.RIF"
  29.     name "wepgunlok"
  30. }
  31.  
  32. character Chr_GunLok : Chr_DefaultGoodie
  33. {
  34.     turning speed   1    // this is in revolutions per second
  35.     walking speed   1    // this is in animation cycles per second
  36.     strength        130    // initial strength points
  37.     aim             0    // how many degrees off target he can be at most
  38.     sight angle    75    // in degrees
  39.     sight range     12    // in metres (i've doubled this for a test)
  40.     hearing range    17    // in metres
  41.     gun yaw angle    175    // in degrees
  42.     damage multiplier    1.5
  43.     aggression        0.7    // from 0 to 1
  44.     radius            0.5    // used by the movement model
  45.     customization hierarchy Hcy_GunLokCustomize
  46.     shadow hierarchy    Hcy_GunLokShadow
  47.     description        gunlok description
  48.     status window u    0
  49.     status window v    674
  50. }
  51.  
  52. role Rol_GunLok : Rol_DefaultRobot
  53. {
  54.     shape            Hcy_GunLok
  55.     character        Chr_GunLok
  56.     identifier        "GUNLOK"
  57.     armour            3
  58.     destructibility    Des_Explode
  59.     ai                bot
  60.     limit            1
  61. }
  62.  
  63. ///////////////////////////////////////////////////////////////
  64.  
  65. // Gunlok's energy weapon (for first person mode)
  66.  
  67. pgenerator Pgn_Gunlok_Energy_Weapon
  68. {
  69.     type explosion
  70.     life infinite // well actually until the shot no longer exists
  71.     particle TTL 0.8
  72.     rate 50
  73.     // stream direction
  74.     x 0 y 0 z 0
  75.     // particle colour
  76.     red 0.59 green 0.20 blue 0.96 alpha 0.5
  77.     // scale
  78.     start scale 1 end scale 0.1
  79.     spin 10000
  80. }
  81.  
  82. projectile Prj_Gunlok_Energy_Weapon
  83. {
  84.     gravity        no
  85.     damage        50
  86.     blast        10
  87.     max range    10000
  88. }
  89.  
  90. role Rol_Gunlok_Energy_Weapon : Rol_DefaultProjectile
  91. {
  92.     shape        Pgn_Gunlok_Energy_Weapon
  93.  
  94.     projectile    Prj_Gunlok_Energy_Weapon
  95.  
  96.     identifier    "gunlok_power"
  97.  
  98.     light        Lit_PurplePlasma
  99. }
  100.     
  101. ////////////////////////////////////////////////////////////////////////////////////
  102.  
  103. // end wrapper - for preventing multiple or recursive inclusions
  104. #endif // !INCLUDED_GUNLOK_GSH